package com.bilibili.server.repository;

import com.bilibili.server.entity.VideoType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface VideoTypeRepository extends JpaRepository<VideoType, Integer> {
    Optional<VideoType> findByTypeName(String typeName);
    Optional<VideoType> findByTypeAlias(String typeAlias);
    List<VideoType> findByTypeStatus(Integer typeStatus);
}